﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using WalkingTec.Mvvm.Core;
using System.Text.Json.Serialization;
using TyMES.Model;

namespace TyMES.Model.BaseInformation
{
    /// <summary>
    /// 工序管理
    /// </summary>
	[Table("T_RouteOperations")]

    [Display(Name = "_Model.RouteOperation")]
    public class RouteOperation : TopBasePoco,IPersistPoco
    {
        [Display(Name = "_Model._RouteOperation._AddTime")]
        [Comment("添加时间")]
        public DateTime? AddTime { get; set; }
        [Display(Name = "_Model._RouteOperation._EditTime")]
        [Comment("编辑时间")]
        public DateTime? EditTime { get; set; }
        [Display(Name = "_Model._RouteOperation._LastOperationCode")]
        [Comment("前工序编码")]
        public string LastOperationCode { get; set; }
        [Display(Name = "_Model._RouteOperation._LineCode")]
        [Comment("产线编码")]
        public string LineCode { get; set; }
        [Display(Name = "_Model._RouteOperation._NextNode")]
        [Comment("下一个节点")]
        public string NextNode { get; set; }
        [Display(Name = "_Model._RouteOperation._NextOperationCode")]
        [Comment("后工序编码")]
        public string NextOperationCode { get; set; }
        [Display(Name = "_Model._RouteOperation._NextOperationId")]
        [Comment("后工序ID")]
        public string NextOperationId { get; set; }
        [Display(Name = "_Model._RouteOperation._OperationCode")]
        [Comment("工序编码")]
        public string OperationCode { get; set; }
        [Display(Name = "_Model._RouteOperation._OperationId")]
        [Comment("工序ID")]
        public string OperationId { get; set; }
        [Display(Name = "_Model._RouteOperation._OperationName")]
        [Comment("工序名称")]
        public string OperationName { get; set; }
        [Display(Name = "_Model._RouteOperation._OrderCode")]
        [Comment("工单编号")]
        public string OrderCode { get; set; }
        [Display(Name = "_Model._RouteOperation._OrderId")]
        [Comment("工单ID")]
        public string OrderId { get; set; }
        [Display(Name = "_Model._RouteOperation._ParentOperationCode")]
        [Comment("父工序编码")]
        public string ParentOperationCode { get; set; }
        [Display(Name = "_Model._RouteOperation._ParentOperationId")]
        [Comment("父工序ID")]
        public string ParentOperationId { get; set; }
        [Display(Name = "_Model._RouteOperation._RouteName")]
        [Comment("工艺路线名称")]
        public string RouteName { get; set; }
        [Display(Name = "_Model._RouteOperation._RouteNumber")]
        [Comment("工艺路线编号")]
        public string RouteNumber { get; set; }
        [Display(Name = "_Model._RouteOperation._RouteVersion")]
        [Comment("工艺路线版本")]
        public string RouteVersion { get; set; }
        [Display(Name = "_Model._RouteOperation._ScheduleNumber")]
        [Comment("排程编号")]
        public string ScheduleNumber { get; set; }
        [Display(Name = "_Model._RouteOperation._Sort")]
        [Comment("排序")]
        public string Sort { get; set; }
        [Display(Name = "_Model._RouteOperation._IsValid")]
        [Comment("是否有效")]
        [Required(ErrorMessage = "Validate.{0}required")]
        public bool IsValid { get; set; } = true;

	}

}
